package com.atgm.mall.gmmallperimall.controller;

import com.atgm.common.utils.PageUtils;
import com.atgm.common.utils.R;
import com.atgm.mall.gmmallperimall.service.PointsGoodsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

/**
 * 积分商城商品
 */
@RestController
@RequestMapping("gmmallperimall/pointsmall")
public class PointsMallController {

    @Autowired
    private PointsGoodsService pointsGoodsService;

    @GetMapping("/list")
    public R getList(@RequestParam Map<String, Object> params) {
        PageUtils pageUtils = pointsGoodsService.queryPage(params);
        return R.ok().setData(pageUtils);
    }

}
